const TokenKey = 'Authorization'
export function setLocal (name, value) {
  sessionStorage.setItem(name, value)
}
export function getLocal (name) {
  return sessionStorage.getItem(name)
}
export function getToken () {
  return sessionStorage.getItem('TokenKey')
}
export function setToken (token) {
  sessionStorage.setItem('TokenKey', token)
}
export function removeToken () {
  sessionStorage.removeItem(TokenKey)
}

export function clearToken (name) {
  sessionStorage.removeItem(name)
}

export function setSession (name, value) {
  return sessionStorage.setItem(name, value)
}
export function getSession (name) {
  return sessionStorage.getItem(name)
}
export function delSession (name) {
  return sessionStorage.removeItem(name)
}
